import React from "react";
import ReactDOM from "react-dom/client";
import { HashRouter } from "react-router-dom";
import store from "./store";
import { Provider } from "react-redux";
// 样式重置
import "normalize.css";
import "@/assets/css/index.less";

// 主题
import { ThemeProvider } from "styled-components";
import Theme from "@/assets/theme/index";

// import App from "./App";
import App from "@/App";

const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement);
root.render(
  <Provider store={store}>
    <ThemeProvider theme={Theme}>
      <HashRouter>
        <App />
      </HashRouter>
    </ThemeProvider>

  </Provider>
);
